﻿@using NewRen.Models
<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">

    <title>@ViewBag.Title - 牛人网</title>
    <meta name="keywords" content="牛人网络科技工程有限公司">
    <meta name="description" content="牛人网络科技工程有限公司">

    <link href="~/Styles/admin/bootstrap.min.css?v=3.4.0" rel="stylesheet">
    <link href="~/Styles/admin/font-awesome.css?v=4.3.0" rel="stylesheet">

    <!-- Morris -->
    <link href="~/Styles/admin/plugins/morris/morris-0.4.3.min.css" rel="stylesheet">

    <!-- Gritter -->
    <link href="~/Scripts/admin/plugins/gritter/jquery.gritter.css" rel="stylesheet">
    <link href="~/Styles/jquery.datetimepicker.css" rel="stylesheet" />

    <link href="~/Styles/admin/animate.css" rel="stylesheet">
    <link href="~/Styles/admin/style.css?v=2.2.0" rel="stylesheet">
    <link href="~/Content/PagedList.css" rel="stylesheet" />

    <script src="~/Scripts/admin/jquery-2.1.1.min.js"></script>
    <script src="~/Scripts/jquery.datetimepicker.js"></script>
</head>

<body>
    <div id="wrapper">
        <nav class="navbar-default navbar-static-side" role="navigation">
            <div class="sidebar-collapse">
                <ul class="nav" id="side-menu">
                    <li class="nav-header">

                        <div class="dropdown profile-element">
                            <span>
                                @if (@ViewBag.CurrentUser.Picture == null)
                                {
                                    <img alt="image" class="img-circle" width="64" height="64" src="~/Images/userphoto.png" />
                                }
                                else
                                {
                                    <img alt="image" class="img-circle" width="64" height="64" src="/Admin/User/ShowPicture/@ViewBag.CurrentUser.ID" />
                                }
                            </span>
                            <a data-toggle="dropdown" class="dropdown-toggle" href="index.html#">
                                <span class="clear">
                                    <span class="block m-t-xs">
                                        <strong class="font-bold">@ViewBag.CurrentUser.UserName</strong>
                                    </span>
                                    <span class="text-muted text-xs block">@ViewBag.CurrentUser.Role <b class="caret"></b></span>
                                </span>
                            </a>
                            <ul class="dropdown-menu animated fadeInRight m-t-xs">
                                <li>
                                    <a href="/Admin/System/EditAvatar/@ViewBag.CurrentUser.ID">修改头像</a>
                                </li>
                                <li>
                                    <a href="/Admin/User/Show/@ViewBag.CurrentUser.ID">个人资料</a>
                                </li>
                                <li>
                                    <a href="/Admin/System/EditPwd/@ViewBag.CurrentUser.ID">修改密码</a>
                                </li>
                                <li>
                                    <a href="/Admin/User/Edit/@ViewBag.CurrentUser.ID">修改个人信息</a>
                                </li>
                                <li class="divider"></li>
                                <li>
                                    <a href="/Admin/User/Logout?sid=@ViewBag.SID">安全退出</a>
                                </li>
                            </ul>
                        </div>
                        <div class="logo-element">
                            H+
                        </div>
                    </li>
                    <li>
                        <a href="/Admin/Home/Index"><i class="fa fa-columns"></i> <span class="nav-label">首页</span></a>
                    </li>
                    <li>
                        <a href="/Admin/Foundation/Index"><i class="fa fa-th-large"></i> <span class="nav-label">基础</span> <span class="fa arrow"></span></a>
                        <ul class="nav nav-second-level">

                            <li>
                                <a href="/Admin/Foundation/Job">工作</a>
                            </li>
                            <li>
                                <a href="/Admin/Foundation/Province">省份</a>
                            </li>
                            <li>
                                <a href="/Admin/Foundation/City">城市</a>
                            </li>
                            <li>
                                <a href="/Admin/Foundation/District">区县</a>
                            </li>
                            <li>
                                <a href="/Admin/Foundation/Town">镇</a>
                            </li>
                            <li>
                                <a href="/Admin/Foundation/Industry">行业</a>
                            </li>
                            <li>
                                <a href="/Admin/Foundation/ProductType">商品类型</a>
                            </li>
                            <li>
                                <a href="/Admin/Foundation/Link">友情链接</a>
                            </li>
                            <li>
                                <a href="/Admin/Recommend/Index">推荐</a>
                            </li>
                            <li>
                                <a href="/Admin/Picture/Index">系统图片</a>
                            </li>
                        </ul>
                    </li>
                    <li>
                        <a href="/Admin/User/Index"><i class="fa fa-th-large"></i> <span class="nav-label">牛人</span> <span class="fa arrow"></span></a>
                        <ul class="nav nav-second-level">
                            <li>
                                <a href="/Admin/NewRen/Index">管理首页</a>
                            </li>
                            <li>
                                <a href="/Admin/NewRen/Stat">统计</a>
                            </li>
                            <li>
                                <a href="/Admin/NewRen/Add">增加</a>
                            </li>
                            <li>
                                <a href="index_4.html">导出</a>
                            </li>
                        </ul>
                    </li>
                    <li>
                        <a href="/Admin/User/Index"><i class="fa fa-th-large"></i> <span class="nav-label">牛棚</span> <span class="fa arrow"></span></a>
                        <ul class="nav nav-second-level">
                            <li>
                                <a href="/Admin/UserGroup/Index">管理首页</a>
                            </li>
                            <li>
                                <a href="/Admin/UserGroup/Stat">统计</a>
                            </li>
                            <li>
                                <a href="/Admin/UserGroup/Add">增加</a>
                            </li>
                            <li>
                                <a href="index_4.html">导出</a>
                            </li>
                        </ul>
                    </li>
                    <li>
                        <a href="/Admin/Business/Index"><i class="fa fa-th-large"></i> <span class="nav-label">商家</span> <span class="fa arrow"></span></a>
                        <ul class="nav nav-second-level">
                            <li>
                                <a href="/Admin/Business/Index">管理首页</a>
                            </li>
                            <li>
                                <a href="/Admin/Business/Stat">统计</a>
                            </li>
                            <li>
                                <a href="/Admin/Business/Add">增加</a>
                            </li>
                            <li>
                                <a href="index_4.html">导出</a>
                            </li>
                        </ul>
                    </li>
                    <li>
                        <a href="/Admin/Bbs/Index"><i class="fa fa-th-large"></i> <span class="nav-label">论坛管理</span> <span class="fa arrow"></span></a>
                        <ul class="nav nav-second-level">
                            <li>
                                <a href="/Admin/Bbs/Forum">模块管理</a>
                            </li>
                            <li>
                                <a href="/Admin/Bbs/Topic">帖子管理</a>
                            </li>

                        </ul>
                    </li>
                    <li>
                        <a href="/Admin/Anecdote/Index"><i class="fa fa-th-large"></i> <span class="nav-label">牛人轶事</span> <span class="fa arrow"></span></a>
                        <ul class="nav nav-second-level">
                            <li>
                                <a href="/Admin/Anecdote/Index">管理首页</a>
                            </li>
                            <li>
                                <a href="/Admin/Anecdote/Add">增加</a>
                            </li>

                        </ul>
                    </li>
                    <li>
                        <a href="/Admin/News/Index"><i class="fa fa-th-large"></i> <span class="nav-label">新闻</span> <span class="fa arrow"></span></a>
                        <ul class="nav nav-second-level">
                            <li>
                                <a href="/Admin/News/Index">管理首页</a>
                            </li>
                            <li>
                                <a href="/Admin/News/Import">导入新闻</a>
                            </li>
                        </ul>
                    </li>
                    <li>
                        <a href="/Admin/System/Index"><i class="fa fa-th-large"></i> <span class="nav-label">系统</span> <span class="fa arrow"></span></a>
                        <ul class="nav nav-second-level">
                            <li>
                                <a href="/Admin/System/Index">管理首页</a>
                            </li>
                            @if (@ViewBag.CurrentUser.Role >= AdminRole.Manager)
                            {
                                <li>
                                    <a href="/Admin/System/Manager">管理员管理</a>
                                </li>
                            }
                            <li>
                                <a href="/Admin/System/AddAdmin">增加管理员</a>
                            </li>
                            <li>
                                <a href="/Admin/System/Setting">参数设置</a>
                            </li>
                            <li>
                                <a href="/Admin/Log/Index">日志</a>
                            </li>
                        </ul>
                    </li>
                </ul>

            </div>
        </nav>

        <div id="page-wrapper" class="gray-bg dashbard-1">
            <div class="row border-bottom">
                <nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0">
                    <div class="navbar-header">
                        <a class="navbar-minimalize minimalize-styl-2 btn btn-primary " href="#"><i class="fa fa-bars"></i></a>
                        <form role="search" class="navbar-form-custom" method="post" action="search_results.html">
                            <div class="form-group">
                                <input type="text" placeholder="请输入您需要查找的内容 …" class="form-control" name="top-search" id="top-search">
                            </div>
                        </form>
                    </div>
                    <ul class="nav navbar-top-links navbar-right">
                        <li>
                            <span class="m-r-sm text-muted welcome-message"><a href="index.html" title="返回首页"><i class="fa fa-home"></i></a>欢迎使用牛人网后台管理</span>
                        </li>
                        <li class="dropdown">
                            <a class="dropdown-toggle count-info" data-toggle="dropdown" href="#">
                                <i class="fa fa-envelope"></i> <span class="label label-warning">@ViewBag.TodayTopicCount</span>
                            </a>
                            <ul class="dropdown-menu dropdown-messages">
                                @foreach (var item in ViewBag.TodayTopics)
                                {
                                    <li>
                                        <div class="dropdown-messages-box">
                                            <div class="media-body">
                                                <small class="pull-right">@item.Time</small>
                                                <strong>@item.User.UserName</strong>
                                                <br>
                                                <small class="text-muted">@item.Title</small>
                                            </div>
                                        </div>
                                    </li>
                                    <li class="divider"></li>
                                }
                                <li>
                                    <div class="text-center link-block">
                                        <a href="notifications.html">
                                            <strong>查看所有 </strong>
                                            <i class="fa fa-angle-right"></i>
                                        </a>
                                    </div>
                                </li>
                            </ul>
                        </li>
                        <li class="dropdown">
                            <a class="dropdown-toggle count-info" data-toggle="dropdown" href="index.html#">
                                <i class="fa fa-bell"></i> <span class="label label-primary">@ViewBag.TodayRegister</span>
                            </a>
                            <ul class="dropdown-menu dropdown-alerts">
                                @foreach (var item in ViewBag.LastestRegisters as List<User>)
                                {
                                    <li>
                                        <a href="/Admin/User/Show/@item.ID">
                                            <div>
                                                <i class="fa fa-envelope fa-fw"></i> @item.UserName
                                                <span class="pull-right text-muted small">@item.AddTime</span>
                                            </div>
                                        </a>
                                    </li>
                                    <li class="divider"></li>
                                }
                                <li>
                                    <div class="text-center link-block">
                                        <a href="notifications.html">
                                            <strong>查看所有 </strong>
                                            <i class="fa fa-angle-right"></i>
                                        </a>
                                    </div>
                                </li>
                            </ul>
                        </li>
                        <li>
                            <a href="/Admin/User/Logout?sid=@ViewBag.SID">
                                <i class="fa fa-sign-out"></i> 退出
                            </a>

                        </li>
                        <li>
                            <a href="/">
                                网站首页
                            </a>
                        </li>
                    </ul>

                </nav>
            </div>
            @RenderBody()

            <div class="footer">
                <div class="pull-right">
                    By：<a href="http://www.zi-han.net" target="_blank">nele</a>
                </div>
                <div>
                    <strong>Copyright</strong>NewRen &copy; 2015
                </div>
            </div>
        </div>
    </div>

    <!-- Mainly scripts -->

    <script src="~/Scripts/admin/bootstrap.min.js?v=3.4.0"></script>
    <script src="~/Scripts/admin/plugins/metisMenu/jquery.metisMenu.js"></script>
    <script src="~/Scripts/admin/plugins/slimscroll/jquery.slimscroll.min.js"></script>

    <!-- Custom and plugin javascript -->
    <script src="~/Scripts/admin/hplus.js?v=2.2.0"></script>
    <script src="~/Scripts/admin/plugins/pace/pace.min.js"></script>
    <script src="~/Scripts/admin/admin.js"></script>
    <script type="text/javascript" src="http://tajs.qq.com/stats?sId=9051096" charset="UTF-8"></script>
    <!--统计代码，可删除-->
</body>

</html>